package com.xie.authority_system.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Vue-element-router
 * @author 谢金成
 * @date 2024/1/16 17:33
 */
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class RouterVo {

    private String path;

    private String component;

    private boolean alwaysShow;

    private String name;

    private Meta meta;

    @Data
    @AllArgsConstructor
    public class Meta {
        private String title;

        private String icon;

        private Object[] roles;
    }

    private List<RouterVo> children = new ArrayList<>();
}
